Create a Unique or Non-Unique Index

Use the Table Index Editor to create a new unique (alternate key, or AK) or non-unique (inverted entry, or IE) index for a table in the physical model.

To create a unique or non-unique index

  1. Expand the table for which you want to create an index.

  2. Right-click Indexes and select either New Unique Index or New Non-Unique Index.

    The Index is created.

  3. Right-click the required index and click Properties.

    The Table Index Editor opens.

  4. Use the following options:

    Physical Name

    Specifies the physical name of the index. Change the physical name of the index in this field.

    Type

    Displays the table's index type.

    Is Unique

    Specifies if the index is unique or non-unique. Select the check box if it is a unique index.

    Exclude
    Prevents two rows from having the same values in a table, depending on the operator used.
    If Not Exists
    Specifies if the table index already exists, no exception is thrown, and no action happens.
    Physical Only

    Specifies whether the index should be suppressed from a logical model and appear in a physical model only.

    Generate

    Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.

    Generate As Constraint

    Generates the index as a constraint. Select the check box to enable this option. When this option is enabled, the Constraint Name field in this editor is populated with the index name.

    Not all target servers support this option.

  5. Click the Members tab and work with the following options:
    Index Members

    Lists the columns defined to the table and lets you specify the columns to place into the index. You can use the toolbar to specify sort order, move columns up or down in the list, invoke the Column Editor to manage column properties, or open the Reset Order dialog to reset column order.

    Also Include

    Specifies other non-key columns to include in the index. These columns are not part of the index but are stored along with the index columns in the index data area for fast retrieval. This optimizes retrieval speed because a read of this column is satisfied from the index data area, without accessing the row from the row data area. You can use the toolbar to specify sort order, move columns up or down in the list, or invoke the Table Column Editor to manage column properties.

  6. Work with the other tabs to further define the index.
  7. Click Close.
  8. The index is created and the Table Index Editor closes.

More information:

Table Index Editor